import { IVolumn } from './volume'
export interface ICube extends IVolumn {}

export class Cube implements ICube {
  width = 0
  height = 0
  long = 0
  constructor(width: number) {
    this.long = this.width = this.height = this.height = width
  }

  bulk() {
    return this.long * this.width * this.height
  }

  area() {
    return Math.pow(this.width, 2) * 6
  }
}
